<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>保存现状录入表单</title>
<script type="text/javascript" src="${path}/js/scripts/bootstart.js"></script>
<link rel="stylesheet" type="text/css" href="${path}/css/focus.css" />
</head>
<body>
	<form id="umprotectSatuForm" method="post">
		<!-- 隐藏域 -->
		<div style="display: none;">
			<input name="preserveId" class="mini-textbox" id="preserveId" /> <input
				name="basicId" class="mini-textbox" id="basicId" />
		</div>
		<!-- 表单域 -->
		<div class="form_nav">
			<table width="100%" cellpadding="4" cellspacing="0">
				<tr>
					<td width="10%" class="xx_bt nonebor">文物编号:</td>
					<td width="24%" class="xx_type  nonebor"><input name=""
						style="width: 90%;" class="mini-textbox" vtype="maxLength:100" /><span
						class="required_cls">*</span></td>

					<td width="10%" class="xx_bt nonebor">文物名称:</td>
					<td width="23%" class="xx_type  nonebor"><input
						name="basicName" style="width: 90%;" class="mini-textbox"
						vtype="maxLength:100" id="basicName" allowInput="false" /><span
						class="required_cls">*</span></td>

					<td width="10%" class="xx_bt nonebor">保存程度</td>
					<td width="23%" class="xx_type"><input class="mini-combobox"
						showNullItem="true"
						url="${path}/mgr/dictionary/showListByKey?dicKey=7"
						nullItemText="请选择保存程度" name="preserveDegree" style="width: 90%;"
						textField="dicValue" valueField="dicValue" allowInput="false" /><span
						class="required_cls">*</span></td>
				</tr>

				<tr>
					<td width="10%" class="xx_bt">完整性:</td>
					<td width="24%" class="xx_type"><input class="mini-combobox"
						showNullItem="true"
						url="${path}/mgr/dictionary/showListByKey?dicKey=8"
						nullItemText="请选择完整性" name="preserveIntegrity" style="width: 90%;"
						textField="dicValue" valueField="dicValue" allowInput="false" /><span
						class="required_cls">*</span></td>
					<td width="10%" class="xx_bt">病害侵腐度:</td>
					<td width="24%" class="xx_type"><input class="mini-combobox"
						showNullItem="true"
						url="${path}/mgr/dictionary/showListByKey?dicKey=10"
						nullItemText="请选择完整性" name="preserveDisease" style="width: 90%;"
						textField="dicValue" valueField="dicValue" allowInput="false" /><span
						class="required_cls">*</span></td>
					<td width="10%" class="xx_bt">稳固性:</td>
					<td width="24%" class="xx_type"><input class="mini-combobox"
						showNullItem="true"
						url="${path}/mgr/dictionary/showListByKey?dicKey=9"
						nullItemText="请选择完整性" name="preserveFirm" style="width: 90%;"
						textField="dicValue" valueField="dicValue" allowInput="false" /><span
						class="required_cls">*</span></td>

				</tr>
				<tr>
					<td class="xx_bt">完损情况:</td>
					<td class="xx_type" colspan="5"><input
						name="integritySituation" style="width: 97%;"
						class="mini-textarea" /><span class="required_cls">*</span></td>
				</tr>
				<tr>
					<td class="xx_bt">稳固情况:</td>
					<td class="xx_type" colspan="5"><input name="firmSituation"
						style="width: 97%;" class="mini-textarea" /><span
						class="required_cls">*</span></td>
				</tr>

				<tr>
					<td class="xx_bt">侵蚀情况:</td>
					<td class="xx_type" colspan="5"><input name="diseaseSituation"
						style="width: 97%;" class="mini-textarea" /><span
						class="required_cls">*</span></td>
				</tr>

			</table>
		</div>


		<div style="text-align: center; padding: 10px;">
			<a class="mini-button" onclick="addform.saveData" id="sub_button"
				iconCls="icon-save" style="width: 60px; margin-right: 20px;">保存</a>
			<a iconCls="icon-cancel" class="mini-button"
				onclick="$.form.onClose()" style="width: 60px;">取消</a>
		</div>
	</form>
</body>
<script type="text/javascript" src="${path}/js/scripts/dataform.js"></script>
<script type="text/javascript">
	$(function() {
		$.form.init(); //初始化表单
		window.addform = {};
		addform.saveData = function() {
			var form = new mini.Form("#umprotectSatuForm");
			form.validate();
			if (form.isValid() == false) {
				return;
			}
			$.form.saveData({
				url : "${path}/mgr/umprotectsatu/addProtectSatu",
				showMsg : true,//是否显示提示信息（返回参数必须是msg，json类型数据）
				id : "umprotectSatuForm"
			});
		};
	});
	//页面初始化时，执行该函数资源类型
	$.form.loadFormSuccess = function() {
		if (!mini.get("preserveId").value > 0) {
			mini.get("basicId").setValue("${param.basicId}");
			mini.get("basicName").setValue(decodeURI("${name}"));
		}
	};
</script>
</html>